package com.cntcdt.api.service.impl;

import java.util.List;

import com.cntcdt.api.db.dao.GroupDeviceDayCntDao;
import com.cntcdt.api.db.model.GroupDeviceDayCntModel;
import com.cntcdt.api.service.GroupDeviceDayCntService;

public class GroupDeviceDayCntServiceImpl implements GroupDeviceDayCntService {

	@Override
	public GroupDeviceDayCntModel findByYesterday(int groupUserId) {
		return GroupDeviceDayCntDao.getInstance().findByYesterday(groupUserId);
	}

	@Override
	public GroupDeviceDayCntModel findByThisMonth(int groupUserId) {
		return GroupDeviceDayCntDao.getInstance().findByThisMonth(groupUserId);
	}

	@Override
	public List<GroupDeviceDayCntModel> findByLastSevenDayData(int groupUserId) {
		return GroupDeviceDayCntDao.getInstance().findByLastSevenDayData(groupUserId);
	}

	@Override
	public GroupDeviceDayCntModel findByYesterday(String terminal) {
		// TODO Auto-generated method stub
		return GroupDeviceDayCntDao.getInstance().findByYesterday(terminal);
	}

	@Override
	public GroupDeviceDayCntModel findByThisMonth(String terminal) {
		// TODO Auto-generated method stub
		return GroupDeviceDayCntDao.getInstance().findByThisMonth(terminal);
	}

	@Override
	public List<GroupDeviceDayCntModel> findByLastSevenDayData(String terminal) {
		// TODO Auto-generated method stub
		return GroupDeviceDayCntDao.getInstance().findByLastSevenDayData(terminal);
	}

	@Override
	public List<GroupDeviceDayCntModel> findBySortTimeSum(int groupUserId,
			long sortTime) {
		return GroupDeviceDayCntDao.getInstance().findBySortTimeSum(groupUserId, sortTime);
	}

	@Override
	public List<GroupDeviceDayCntModel> findMonthDataBySortTime(int groupUserId,long sortTime) {
		return GroupDeviceDayCntDao.getInstance().findMonthDataBySortTime(groupUserId,sortTime);
	}

	@Override
	public List<GroupDeviceDayCntModel> findBySortTimeSum(String terminal,
			long sortTime) {
		return GroupDeviceDayCntDao.getInstance().findBySortTimeSum(terminal, sortTime);
	}

	@Override
	public List<GroupDeviceDayCntModel> findMonthDataBySortTime(
			String terminal, long sortTime) {
		return GroupDeviceDayCntDao.getInstance().findMonthDataBySortTime(terminal, sortTime);
	}

	@Override
	public List<GroupDeviceDayCntModel> findByDateTime(int groupUserId,
			String time) {
		return GroupDeviceDayCntDao.getInstance().findByDateTime(groupUserId, time);
	}

}
